
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <meta name="description" content="">
    <meta name="author" content="">

    <title>{$sysPageTitle}</title>

    <link href="__PUBLIC__/images/favicon.ico" rel="shortcut icon" />

    <!-- Bootstrap core CSS -->
    <link rel="stylesheet" href="__PUBLIC__/css/bootstrap.min.css" />
    <link rel="stylesheet" href="__PUBLIC__/css/bootstrap-theme.min.css" />
    <link rel="stylesheet" href="__PUBLIC__/css/dashboard.css" />
    <link rel="stylesheet" href="__PUBLIC__/css/icheck/all.css" />
    <link rel="stylesheet" href="__PUBLIC__/js/bootstrapvalidator/css/bootstrapValidator.min.css" />
    <link rel="stylesheet" href="__PUBLIC__/css/bootstrap-datetimepicker.css" />
</head>

<body>

<include file="Common/topNav" />

<div class="container-fluid">
    <div class="row">
        <include file="Common/leftMenu" />
        <div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
            <div class="cont-title clearfix">
                <div class="title">航线列表</div>
            </div>
            <include file="search" />
            <div class="table-responsive">
                <table class="table table-striped table-hover" id="tableData">
                    <thead>
                    <tr>
                        <th>序号</th>
                        <th>航班号</th>
                        <th>始发地</th>
                        <th>目的地</th>
                        <th>出发时间</th>
                        <th>到达时间</th>
                        <th>操作</th>
                    </tr>
                    </thead>
                    <tbody>
                    <empty name="listData">
                        <tr>
                            <td colspan="10">没有相关记录</td>
                        </tr>
                    </empty>
                    <foreach name="listData" item="data">
                        <tr>
                            <td>{$key|getLineNum=$nowPage,$pageSize}</td>
                            <td>{$data.air_code}</td>
                            <td>{$data.origin}</td>
                            <td>{$data.destination}</td>
                            <td>{$data.depart_date|date="Y-m-d H:i",###}</td>
                            <td>{$data.reach_date|date="Y-m-d H:i",###}</td>
                            <td>
                                <a thisId="{$data['id']}" class="list-trip" href="javascript:void(0);">行程明细</a>
                            </td>
                        </tr>
                    </foreach>
                    </tbody>
                </table>
                <div class="page">
                    {$page}
                </div>
            </div>
        </div>
    </div>
</div>


<include file="Common/modalHtmls" />
<script type="text/javascript" src="__PUBLIC__/js/jquery.min.js"></script>
<script type="text/javascript" src="__PUBLIC__/js/bootstrap.min.js"></script>
<script type="text/javascript" src="__PUBLIC__/js/common.js"></script>
<script type="text/javascript" src="__PUBLIC__/js/icheck.min.js"></script>
<script type="text/javascript" src="__PUBLIC__/js/bootstrapvalidator/js/bootstrapValidator.min.js"></script>
<script type="text/javascript" src="__PUBLIC__/js/bootstrap-datetimepicker.js"></script>
<script type="text/javascript">
    $(function () {
        $("#tableData").on("click",".edit-air",function () {
            var id = $(this).attr("thisId");
            common.getHtml("{:U('Admin/Airway/editAir')}", {id:id}, function (html) {
                common.closeLoading();
                $("#commonModal").html(html).modal({show: true, backdrop: 'static', keyboard: false});
            });
        });
        $("#tableData").on("click",".list-trip",function () {
            var airId = $(this).attr("thisId");
            common.getHtml("{:U('Admin/Airway/listTrip')}", {airId:airId}, function (html) {
                common.closeLoading();
                $("#commonModal").html(html).modal({show: true, backdrop: 'static', keyboard: false});
            });
        });
    });
</script>
</body>
</html>
